package cn.supermarket.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author theThe
 * @date 2022/7/5
 */
@Data
public class AddProductOutputDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 验证请求参数失败的描述文本前缀
     */
    private static final String VALIDATE_MESSAGE_PREFIX = "添加出库记录失败,";


    /**
     * 提货人
     */
    @ApiModelProperty(value = "提货人", required = true, dataType = "String", example = "张泽泽")
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请填写提货人！")
    private String consignee;
    /**
     * 日期
     */
    @ApiModelProperty(value = "日期", required = true, dataType = "Date", example = "2022-07-06")
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请填写时间！")
    private Date date;
    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id", required = true, dataType = "Long", example = "3585")
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请填写商品id！")
    private Long productId;
    /**
     * 数量
     */
    @ApiModelProperty(value = "数量", required = true, dataType = "BigDecimal", example = "500")
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请填写数量！")
    private BigDecimal quantity;
    /**
     * 操作人员
     */
    @ApiModelProperty(value = "操作人员", required = true, dataType = "String", example = "admin001")
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请填写操作人员！")
    private String operator;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = true, dataType = "String", example = "备注")
    private String remarks;

}
